package com.leo.entity;

import com.almasb.fxgl.dsl.FXGL;
import com.almasb.fxgl.entity.Entity;
import com.almasb.fxgl.entity.EntityFactory;
import com.almasb.fxgl.entity.SpawnData;
import com.almasb.fxgl.entity.Spawns;

public class TankEntityFactory implements EntityFactory {

    @Spawns("tank")
    public Entity createTank(SpawnData spawnData) {
        return FXGL.entityBuilder(spawnData)
//                .view()
                .build();
    }
}
